import request from '@/utils/request'

// 查询出入库记录列表
export function list(query) {
  return request({
    url: '/archives/record/list',
    method: 'get',
    params: query
  })
}

// 查询出入库记录详细
export function get(recordId) {
  return request({
    url: '/archives/record/' + recordId,
    method: 'get'
  })
}

// 新增出入库记录
export function add(data) {
  return request({
    url: '/archives/record',
    method: 'post',
    data: data
  })
}

// 修改出入库记录
export function update(data) {
  return request({
    url: '/archives/record',
    method: 'put',
    data: data
  })
}

// 删除出入库记录
export function del(recordId) {
  return request({
    url: '/archives/record/' + recordId,
    method: 'delete'
  })
}
